package cloud.xiangyixiang.www.spring.boot.java.basics.interfaces;

/**
 * <p>
 * Predicate
 * </p>
 *
 * @author weixin
 * @date 2023/9/21 11:09
 */
@FunctionalInterface
public interface Predicate<T> {

    /**
     * Evaluates the predicate on the given argument.
     *
     * @param value the input argument
     * @return {@code true} if the input argument matches the predicate, otherwise {@code false}
     */
    boolean test(T value);

}
